package com.rw;

import com.rw.advice.MyAdvice;
import com.rw.test.RoundInterface;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAspectAop {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationcontext.xml");
        MyAdvice myAdvice = (MyAdvice) ac.getBean("myAdvice");
        RoundInterface ri = (RoundInterface) ac.getBean("myAspectTest");
        ri.printInfo();
//        System.out.println("------------");
//        ri.testAllFunc(18);
//        System.out.println("------------");
//        ri.testAllFunc("李四");
//        System.out.println("------------");
//        ri.testAllFunc2("张三",20);
//        System.out.println("------------");
//        ri.testAllFunc3("z",12,23.0);
//        System.out.println("------------");
//        ri.testAllFunc4("a",12.0,23);
    }
}
